package com.example.demo0910_hotdeployment.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.Map;

@Data
@Configuration
@PropertySource("classpath:map.properties")
public class MyConfig {
    @Value("${map.key1}")
    private String v1;
    @Value("${map.key2}")
    private String v2;

}
